package com.atguigu.gulimall.product.service;

import com.atguigu.gulimall.product.model.vo.AttrGroupWithAttrsVO;
import com.atguigu.gulimall.product.model.vo.Catalog2VO;
import com.baomidou.mybatisplus.extension.service.IService;
import com.atguigu.common.utils.PageUtils;
import com.atguigu.gulimall.product.entity.CategoryEntity;

import java.util.List;
import java.util.Map;

/**
 * 商品三级分类
 *
 * @author glh
 * @email 2889535252@gmail.com
 * @date 2022-02-10 13:56:36
 */
public interface CategoryService extends IService<CategoryEntity> {

    PageUtils queryPage(Map<String, Object> params);

    List<CategoryEntity> listWithTree();

    void removeMenuByIds(List<Long> catIds);

    Long[] findCatelogPath(Long catelogId);

    void updateDetail(CategoryEntity category);

    List<AttrGroupWithAttrsVO> getAttrGroupWithAttrsByCatelogId(Long catelogId);

    List<CategoryEntity> getLevel1Category();

    Map<Long, List<Catalog2VO>> getCatelogJson();

}

